local skill = fk.CreateSkill {
  name = "#ling__fire_gun_skill",
  attached_equip = "ling__fire_gun",
}

Fk:loadTranslationTable{
  ["#ling__fire_gun_skill"] = "突火枪",
}

skill:addEffect(fk.AfterCardUseDeclared, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skill.name) and data.card.name == "slash"
  end,
  on_use = function(self, event, target, player, data)
    data:changeCard("fire__slash", data.card.suit, data.card.number, skill.name)
  end,
})

skill:addEffect(fk.PreCardUse, {
  can_refresh = function (self, event, target, player, data)
    return target == player and player:hasSkill(skill.name) and
      data.card.name == "fire__slash" and not data.card:isVirtual()
  end,
  on_refresh = function (self, event, target, player, data)
    data.additionalDamage = (data.additionalDamage or 0) + 1
  end,
})

return skill
